< previous page page_330 next page >

Page 330
Quiz
1. What are the biggest benefits of this subsystem?
2. What kinds of database operations are candidates for logging?
3. In what ways can you store application or user settings?
4. What kinds of information are potentially useful to record with every log item?
5. What is a potential downfall of logging too much information?
Exercises
1. Using the classes CApplication, AppTransactions, and the form frmLog, create a simple project with a form and a command button. Name the button cmdDone and caption it Done. Create a controller class for this form and call it CForml. In CForml, create a method, showForm, that has the line Form1.Show. Create another method, clickedDoneBtn. Add a module, modMain, and add a Main subroutine to it. Declare a new instance of CForml, theForm1. In Sub Main, insert theForm1.showForm. In the form's cmdDone Click event, insert the code necessary to log the clicking event.
2. Using the code in exercise 1, display the form frmLog to ensure that everything is working properly.
3. Using exercise 1 again, log the event of the clickedDoneBtn method in a list box.

 
< previous page page_330 next page >

If you like this book, buy it!